# -*- coding:utf-8 -*-
# @Date  : 2019/2/1

from rest_framework.routers import DefaultRouter
# router = DefaultRouter()
# router.register(r'users', UserListSet)
# router.register(r'articles', ArticleListSet)
# router.register(r'tags', TagListSet)
# router.register(r'categorys', CategoryListSet)
# router.register(r'timelines', TimelineListSet)
# router.register(r'toollinks', ToolLinkListSet)

# router.register(r'user', UserAPIView.as_view())

from .views import ArticleListview,ArticleDetailView
from .test import TestView
from django.urls import path
from rest_framework_simplejwt.views import token_obtain_pair,token_refresh,token_verify

urlpatterns = [
    path(r'test/', TestView.as_view(), name='test'),  #测试JWT授权
    path(r'articles/', ArticleListview.as_view(), name='articles'),  #文章列表页
    path(r'article_desc/', ArticleDetailView.as_view(), name='articles'),  #文章列表页
    path(r'token/', token_obtain_pair, name='get_token'),
	path(r'token/refresh/', token_refresh, name='refresh_token'),
    path(r'token/verify/', token_verify, name='token_verify'),
]